/*
 * jPOS' miniSpace
 * Copyright (C) 2000-2006 Alejandro Revilla
 * jPOS.org (http://jpos.org)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
 * USA
 *
 */

package org.jpos.space;

/**
 * Intercepts space operations.
 *
 * @author Alejandro Revilla
 * @since  1.4.7
 */
public class SpaceInterceptor implements Space {
    protected Space sp;
    public SpaceInterceptor (Space sp) {
        super();
        this.sp = sp;
    }
    public void out (Object key, Object value) {
        sp.out (key, value);
    }
    public void out (Object key, Object value, long timeout) {
        sp.out (key, value, timeout);
    }
    public Object in  (Object key) {
        return sp.in (key);
    }
    public Object rd  (Object key) {
        return sp.rd (key);
    }
    public Object in  (Object key, long timeout) {
        return sp.in (key, timeout);
    }
    public Object rd  (Object key, long timeout) {
        return sp.rd (key, timeout);
    }
    public Object inp (Object key) {
        return sp.inp (key);
    }
    public Object rdp (Object key) {
        return sp.rdp (key);
    }
}

